package lc;

/**
 * Created by sunyuming on 19/1/14.
 */
public class A {

    static {
        System.out.println("A 加载");
    }

    public static void teststatic() {
        ;
    }

    public A() {
        // 隐式加载B
        B b = new B();

        // 打印B的类加载器
        System.out.println("B:" + b.getClass().getClassLoader());
    }
}
